var cpvw_Delays={OPEN_DELAY_TIME:500,CLOSE_DELAY_TIME:1000,PREFETCH_DELAY_TIME:5000,DISPLAY_DELAY_TIME:800,ICON_DELAY_TIME:400,PREVIEW_ON_ICON_DELAY:500};
var cpvw_docHandler,cpvw_imageDocHandler;
var cpvw_objOverlay={welcomePage:"http://www.coolpreviews.com/client/links/welcome.php",updatePage:"http://www.coolpreviews.com/client/links/upgrade.php",uninstallPage:"http://www.coolpreviews.com/client/links/uninstall.php",clean:function(){
var cpvw_previewHandler={pushpin:false,isSendToOpen:false,isContextMenu:false,dragActive:false,resizeActive:false,dimPreview:null,curMouseLocX:0,curMouseLocY:0,sendToBoxLink:"http://www.coolpreviews.com/client/scripts/sendto.php",registrationLink:"http://www.coolpreviews.com/client/scripts/registration.htm",loginLink:"http://www.coolpreviews.com/client/scripts/login.htm",statsLink:"http://previews.cooliris.com/qc/",fontSize:1,startTime:(new Date()).getTime(),numPages:0,stackCount:0,previewLaunchCount:0,handleEvent:function(evt){
cpvw_previewHandler.getPreviewWindow().setAttribute("slideshowTip",cpvw_jsUtils.hasCooliris()?"View Google image results in Cooliris":"View Google image results in slideshow");
var cpvw_adManager={leftAdFrameSize:0,topAdFrameSize:0,rightAdFrameSize:0,bottomAdFrameSize:0,adLaunchFrequency:0,adDisplayCap:3,adDisplayCapCookie:"displayCount",adPrefsUrl:"http://previews.cooliris.com/ads/adPrefs.php",adServer:"http://previews.cooliris.com/ads/adServer.php",domain:"http://previews.cooliris.com/",getAdDisplayCount:function(){
var ios=Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var uri=ios.newURI(this.domain,null,null);
var _d7=Components.classes["@mozilla.org/cookieService;1"].getService(Components.interfaces.nsICookieService);
var _d8=_d7.getCookieString(uri,null);
var _d9=this.readCookie(this.adDisplayCapCookie,_d8)||0;
var _e8=Components.classes["@cooliris.com/CoolPreviews;1"].getService().wrappedJSObject;
if(!_e8.uninstallPageDisplayed){
_e8.uninstallPageDisplayed=true;
var _e9=cpvw_objOverlay.uninstallPage+"?guid="+cpvw_prefHandler.getPref(cpvw_Prefs.prefGUID)+"&version="+cpvw_objStats.getAddonVersion(true)+"&adId="+cpvw_prefHandler.getPref(cpvw_Prefs.prefAdId);
openUILinkIn(_e9,"tab");
cpvw_objStats.sendInstallEvent("uninstall");
}
}else{
if(_e7=="item-cancel-action"){
this._uninstall=false;
}
}
}
}else{
if(_e6=="quit-application-granted"){
if(this._uninstall){
}
this.unregister();
}
}
},register:function(){
var _ea=Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);